<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="number" class="control-label col-xs-12 col-sm-2">{:__('number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="number" data-rule="required" class="form-control" name="row[number]" placeholder="请输入项目编码,以XM开头" type="text" value="{$row.number|htmlentities}">
        </div>
    </div>

    <!--项目区域-->

    <div class="form-group" style="display: none;">
        <label for="area" class="control-label col-xs-12 col-sm-2">项目区域:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="area"  class="form-control selectpicker" name="row[area]"  pid="{$row.area}">
                <option  value="">请选择</option>
                <option  value="1">振华重工</option>
                <option  value="2">中海长兴</option>
                <option  value="3">江南造船</option>
                <option  value="4">沪东中华</option>

            </select>

        </div>
    </div>
    <!--项目区域-->

    <!--项目区域代码-->

    <div class="form-group" id="areacodediv">
        <label for="areacode" class="control-label col-xs-12 col-sm-2">区域代号:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="areacode" data-rule="required" class="form-control selectpicker" name="row[areacode]"  codepid="{$row.areacode}">
                <option value="">请选择</option>
                <option  value="A1">A1</option>
                <option  value="A2">A2</option>
                <option  value="A3">A3</option>
                <option  value="A4">A4</option>
                <option  value="A5">A5</option>
                <option  value="A6">A6</option>
                <option  value="A7">A7</option>
                <option  value="A8">A8</option>
                <option  value="A9">A9</option>
                <option  value="A10">A10</option>
                <option  value="A11">A11</option>
                <option  value="A12">A12</option>
                <option  value="A13">A13</option>
                <option  value="A14">A14</option>
                <option  value="A15">A15</option>
                <option  value="A16">A16</option>
                <option  value="A17">A17</option>
                <option  value="A18">A18</option>
                <option  value="A19">A19</option>
                <option  value="A20">A20</option>
                <option  value="A21">A21</option>
                <option  value="A22">A22</option>
                <option  value="A23">A23</option>
            </select>

        </div>
    </div>
    <!--项目区域代码-->



    <div class="form-group">
        <label for="unit_id" class="control-label col-xs-12 col-sm-2">{:__('mname')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="unit_id" data-rule="required" class="form-control selectpicker" name="row[unit_id]">
                <option  value="">请选择</option>
                {foreach name="ministries" item="vo"}
                <option  value="{$vo.id}" {in name="$vo.id" value="$row.unit_id"}selected{/in}>{$vo.m_name}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group" id="Catename">
        <label for="a_id" class="control-label col-xs-12 col-sm-2">{:__('Catename')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="a_id" data-rule="required" class="form-control selectpicker" name="row[a_id]" pid="{$row.unit_id}">
                <option pid="0" value="">请选择</option>
                {foreach name="cateList" item="vo"}
                <option  pid="{$vo.pid}" value="{$vo.id}" {in name="$vo.id" value="$row.a_id"}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>

        </div>
    </div>


    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="title" data-rule="required" class="form-control" name="row[title]" placeholder="请输入项目名称" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="survey" class="control-label col-xs-12 col-sm-2">具体条文依据:</label>

        <div class="col-xs-12 col-sm-8">
            <textarea name="row[survey]" id="proof" cols="60" rows="5" class="form-control">{$row.proof|htmlentities}</textarea>
        </div>

    </div>

    <div class="form-group">
        <label for="survey" class="control-label col-xs-12 col-sm-2">{:__('survey')}:</label>

        <div class="col-xs-12 col-sm-8">
            <textarea name="row[survey]" id="survey" cols="60" rows="5" class="form-control">{$row.survey|htmlentities}</textarea>
        </div>

    </div>

    <div class="form-group">
        <label for="subject" class="control-label col-xs-12 col-sm-2">{:__('subject')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="subject" data-rule="required" class="form-control selectpicker" name="row[subject]">
                <option  value="">请选择</option>
                {foreach name="subject" item="vo"}
                <option  value="{$vo.id}" {in name="$vo.id" value="$row.subject"}selected{/in}>{$vo.subject}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label for="innovation" class="control-label col-xs-12 col-sm-2">{:__('innovation')}:</label>

        <div class="col-xs-12 col-sm-8">
            <textarea name="row[innovation]" id="innovation" cols="60" rows="5" class="form-control">{$row.innovation|htmlentities}</textarea>
        </div>

    </div>

    <div class="form-group">
        <label for="ministries" class="control-label col-xs-12 col-sm-2">{:__('ministries')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="ministries" class="form-control" name="row[ministries]" placeholder="请输入国家部委" type="text" value="{$row.ministries|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="municipal" class="control-label col-xs-12 col-sm-2">{:__('municipal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="municipal"  class="form-control" name="row[municipal]" placeholder="请输入SH市级" type="text" value="{$row.municipal|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="contractor" class="control-label col-xs-12 col-sm-2">{:__('contractor')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="contractor"  class="form-control" name="row[contractor]" placeholder="请输入J方" type="text"  value="{$row.contractor|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="track" class="control-label col-xs-12 col-sm-2">{:__('track')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="track" class="form-control" name="row[track]" placeholder="请输入跟踪服务处" type="text"  value="{$row.track|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label for="assessment" class="control-label col-xs-12 col-sm-2">{:__('assessment')}:</label>

        <div class="col-xs-12 col-sm-8">
            <textarea name="row[assessment]" id="assessment" cols="60" rows="5" class="form-control" placeholder="请输入阶段总结评估">{$row.assessment|htmlentities}</textarea>
        </div>

    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">项目开始日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="prostartdate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM" data-use-current="true" name="row[prostartdate]" type="text" value="{$row.prostartdate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">项目结束日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="proenddate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM" data-use-current="true" name="row[proenddate]" type="text" value="{$row.proenddate|htmlentities}">
        </div>
    </div>



    <div class="form-group">
        <label for="investment" class="control-label col-xs-12 col-sm-2">{:__('payment')}:</label>
    </div>

    <div class="form-group">
        <label for="investment" class="control-label col-xs-12 col-sm-3">{:__('investment')}:</label>
        <div class="col-xs-12 col-sm-5">
            <input id="investment"  class="form-control" name="row[investment]" placeholder="请输入投资金额" type="text"  value="{$row.investment|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="investment" class="control-label col-xs-12 col-sm-3">转移支付:</label>
        <div class="col-xs-12 col-sm-5">
            <input class="form-control" name="pm[payment]" placeholder="请输入转移支付" type="text"  value="{$payment.payment|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="investment" class="control-label col-xs-12 col-sm-3">自费:</label>
        <div class="col-xs-12 col-sm-5">
            <input class="form-control" name="pm[expense]" placeholder="请输入自费" type="text"  value="{$payment.expense|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="investment" class="control-label col-xs-12 col-sm-3">其他:</label>
        <div class="col-xs-12 col-sm-5">
            <input class="form-control" name="pm[other]" placeholder="请输入其他" type="text"  value="{$payment.other|htmlentities}">
        </div>
    </div>



    <div class="form-group">
        <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('remark')}:</label>

        <div class="col-xs-12 col-sm-8">
            <textarea name="row[remark]" id="remark" cols="60" rows="5" class="form-control">{$row.remark|htmlentities}</textarea>
        </div>

    </div>




    <!--<button style="margin-left: 17%;margin-bottom: 20px" type="button" class="btn btn-primary" data-toggle='addresspicker' data-input-id="h_address" data-lng-id="lng" data-lat-id="lat">点击选择地址获取经纬度</button>-->
    <!--<div class="form-group">-->
        <!--<label for="lng" class="control-label col-xs-12 col-sm-2">{:__('lng')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="lng" data-rule="required" class="form-control" name="row[lng]" placeholder="请输入经度" type="text" value="{$row.lng|htmlentities}">-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="form-group">-->
        <!--<label for="lat" class="control-label col-xs-12 col-sm-2">{:__('lat')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="lat" data-rule="required" class="form-control" name="row[lat]" placeholder="请输入纬度" type="text" value="{$row.lat|htmlentities}">-->
        <!--</div>-->
    <!--</div>-->



    <!--<div class="form-group">-->
        <!--<label for="size" class="control-label col-xs-12 col-sm-2">{:__('size')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="size"  class="form-control" name="row[size]" placeholder="请输入地图上点的大小，建议：100-200之间" type="number"  value="{$row.size|htmlentities}">-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="form-group">-->
        <!--<label for="color" class="control-label col-xs-12 col-sm-2">{:__('color')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="color"  class="form-control" name="row[color]" placeholder="请输入地图上点的颜色，以#开头，如 #FF6600" type="text"  value="{$row.color|htmlentities}">-->
        <!--</div>-->
    <!--</div>-->


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
